Skip to content

Conversation

@tacman
Copy link
Contributor

@tacman tacman commented Dec 3, 2025

I think this captures what we actually want to check for.

public function build(ContainerBuilder $container): void
{
parent::build($container);

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be reverted

public function build(ContainerBuilder $container)
{
parent::build($container);

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be reverted

}
}
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be reverted

use Twig\Extra\TwigExtraBundle\DependencyInjection\Compiler\MissingExtensionSuggestorPass;

if (!method_exists(ContainerBuilder::class, 'getAutoconfiguredAttributes')) {
$refMethod = new \ReflectionMethod(\Symfony\Component\HttpKernel\Bundle\Bundle::class, 'build');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be removed as this is unused.

@tacman
Copy link
Contributor Author

tacman commented Dec 3, 2025

OK, perhaps it's better to start with a new PR that just checks for major version? Basically just changing the if condition.

@stof
Copy link
Member

stof commented Dec 3, 2025

OK, perhaps it's better to start with a new PR that just checks for major version? Basically just changing the if condition.

you can do a force push to your branch to change its history if you want. No need to replace the PR itself.

@tacman
Copy link
Contributor Author

tacman commented Dec 3, 2025

replaced by #4722

@tacman tacman closed this Dec 3, 2025
fabpot added a commit that referenced this pull request Dec 5, 2025
This PR was squashed before being merged into the 3.x branch.

Discussion
----------

use getShareDir as an indicator of Symfony version

Proposal to fix #4719 , replaces #4721

Commits
-------

c4dcd0b use getShareDir as an indicator of Symfony version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants